home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / administ / netadmin / netadmin.mdf
Text File  |  1996-07-10  |  11KB  |  388 lines

  1. .{NETADMIN.MDF}                               mck
  2. .   1.0    July    1   1987
  3. .   2.0    April   13  1989
  4. .................................................
  5. .................................................
  6. .
  7. . site-specific changes:
  8. .
  9. .  replace {SERVER1}  with {your sname}
  10. .  replace {SERVER2}  with {your sname}
  11. .  replace {PRINTER1} with {your pname}
  12. .  replace {PRINTER2} with {your pname}  
  13. .  replace {Dot-matrix   Color,stencils    } with {your printer1 descripter}
  14. .  replace {Laser        Portrait,Landscape} with {your printer2 descripter}
  15. .  replace {=echo  [} with {}
  16. .  replace {shelby}   with {your password}
  17. .
  18. .................................................
  19. .................................................
  20. %NETADMIN Directories, Users, & Printers
  21. .................................................
  22. .................................................
  23. *Show Users Logged in to Network
  24. ?3F DIR \\... /LINK
  25. >3F DIR \\... /LINK
  26. >
  27. >Please Select a Server Name or SYS for Default Server
  28. <SERVER1,SERVER2,SYS,ALL
  29. >
  30. >3F DIR \\%1 /LINK
  31. !echo off
  32. ! if %1.==ALL. goto ALL
  33. ! echo  [3F DIR \\%1 /LINK
  34. ! goto done
  35. !:ALL
  36. ! for %%p in (SERVER1 SERVER2) do echo  [3F DIR \\%%p /LINK
  37. !:done
  38. ! pause
  39. .................................................
  40. *Show Users Linked to a Printer
  41. ?3P DIR ... /LINK
  42. >3P DIR ... /LINK
  43. >
  44. >Please Select a Printer Name or ALL for All Printers
  45. > PRINTER1  Dot-matrix   Color,stencils
  46. > PRINTER2  Laser        Portrait,Landscape
  47. >
  48. <PRINTER1,PRINTER2,ALL
  49. >
  50. >3P DIR %1 /LINK
  51. !echo off
  52. ! if %1.==ALL. goto ALL
  53. ! echo  [3P DIR %1 /LINK
  54. ! goto done
  55. !:ALL
  56. ! for %%p in (PRINTER1 PRINTER2) do echo  [3P DIR %%p /LINK
  57. !:done
  58. ! pause
  59. .................................................
  60. *Show ShareNames & # Users Linked
  61. ?3F DIR [\\sharename|name] [/LINK]
  62. >3F DIR [\\sharename|name] [/LINK]
  63. >Enter a Username or Sharename, optionally followed by /LINK
  64. >to see how many users are linked to that user or share name
  65. >
  66. >     Examples:   \\sys                 all sharenames on server \\sys
  67. >                 \\sys /link           users linked to server \\sys
  68. >                 {nothing}             sharenames owned by you
  69. >                 \\admin               sharenames owned by admin
  70. >                 \\sys\apps /link      users linked to \\sys\apps
  71. >
  72. >
  73. <
  74. >
  75. =echo  [3F DIR %1 %2
  76. .................................................
  77. *Show User Names
  78. ?3N DIR USER
  79. >3N DIR USER
  80. =echo  [3N DIR USER
  81. .................................................
  82. *Show Aliases for Users
  83. ?3N DIR ALIAS
  84. >3N DIR ALIAS
  85. =echo  [3N DIR ALIAS
  86. .................................................
  87. *Show Printer Names
  88. ?3P DIR
  89. >3P DIR
  90. =echo  [3P DIR
  91. .................................................
  92. *  
  93. @netadmin.mdf
  94. .................................................
  95. *Return to Main Menu
  96. @automenu.mdf
  97. .................................................
  98. .................................................
  99. %NETADMIN  Server Status Reports
  100. .................................................
  101. .................................................
  102. *Show Server Disk Status
  103. ?(disk size & free space)
  104. >3F STAT
  105. =echo  [3F STAT
  106. .................................................
  107. *Show Printer Status 
  108. ?(physical port status)
  109. >3P STAT
  110. =echo  [3P STAT
  111. .................................................
  112. *Show Backup Status
  113. ?3B STAT
  114. >3B STAT
  115. =echo  [3B STAT
  116. .................................................
  117. *Show Mail Status
  118. ?3M STATUS
  119. >3M STATUS
  120. =echo  [3M STATUS
  121. .................................................
  122. *Show Unread Mail in Mailboxes
  123. ?3M DIRM
  124. >3M DIRM
  125. =echo  [3M DIRM
  126. .................................................
  127. @netadmin.mdf
  128. .................................................
  129. *  
  130. @netadmin.mdf
  131. .................................................
  132. *Return to Main Menu
  133. @automenu.mdf
  134. .................................................
  135. .................................................
  136. %NETADMIN Printer Maintenance
  137. .................................................
  138. .................................................
  139. *Show Printjobs in Printer Queue(s)
  140. ?3P QSTAT 
  141. >3P QSTAT
  142. >
  143. >Please Select a Printer Name or ALL for All Printers
  144. > PRINTER1  Dot-matrix   Color,stencils
  145. > PRINTER2  Laser        Portrait,Landscape
  146. >
  147. <PRINTER1,PRINTER2,ALL
  148. >
  149. >Please Select Whose Printjobs You Wish to See
  150. >
  151. <MineOnly,All
  152. >
  153. ! echo off
  154. ! if %1%. == PRINTER1. goto PRINTER1
  155. ! if %1%. == PRINTER2. goto PRINTER2
  156. ! if %1%. == ALL. goto ALL
  157. ! goto abort
  158. !:PRINTER1
  159. ! if %2%. == MineOnly. goto repmine
  160. ! echo 3P QSTAT PRINTER1 /SPOOL=ALL
  161. ! echo  [3P QSTAT PRINTER1 /SPOOL=ALL 
  162. ! goto out
  163. !:repmine
  164. ! echo 3P QSTAT PRINTER1
  165. ! echo  [3P QSTAT PRINTER1
  166. ! goto out
  167. !:PRINTER2
  168. ! if %2%. == MineOnly. goto chkmine
  169. ! echo 3P QSTAT PRINTER2 /SPOOL=ALL
  170. ! echo  [3P QSTAT PRINTER2 /SPOOL=ALL
  171. ! goto out
  172. !:chkmine
  173. ! echo 3P QSTAT PRINTER2
  174. ! echo  [3P QSTAT PRINTER2
  175. ! goto out
  176. !:ALL
  177. ! if %2%. == MineOnly. goto allmine
  178. ! for %%p in (PRINTER1 PRINTER2) do echo  [3P QSTAT %%p /SPOOL=ALL
  179. ! goto out
  180. !:allmine
  181. ! for %%p in (PRINTER1 PRINTER2) do echo  [3P QSTAT %%p
  182. !:out
  183. ! pause
  184. .................................................
  185. *Delete Printjobs From Printer Queue
  186. ?3P DEL Printername /SPOOL=xxx
  187. >3P DEL Printername /SPOOL=xxx
  188. >
  189. >Printjobs in a Printer Queue can be seen via
  190. >option 1 in the Printer Maintenance Sub-Menu
  191. >
  192. >Please Select a Printer Name
  193. > PRINTER1  Dot-matrix    Color,stencils
  194. > PRINTER2  Laser         Portrait,Landscape
  195. >
  196. <PRINTER1,PRINTER2,ALL
  197. >
  198. >Now Enter the spool ID you wish to Delete, or ALL
  199. >if you wish to erase all printjobs from this queue
  200. >
  201. <
  202. >3P DEL \\sys\%1 /SPOOL=%2
  203. !echo off
  204. ! echo  [3P LINK LPT3: \\SYS\%1 /np > nul:
  205. ! echo  [3P DEL LPT3: /SPOOL=%2
  206. ! echo  [3P UNLINK LPT3: /np > nul:
  207. .................................................
  208. *Change Priority for One Printjob in Queue
  209. ?3P SET /SPOOL=xxx /PRI=yyy
  210. >3P SET /SPOOL=xxx /PRI=yyy
  211. >
  212. >
  213. >Please Select a Printer Name
  214. > PRINTER1  Dot-matrix  Color,stencils
  215. > PRINTER2  Laser       Portrait,Landscape
  216. >
  217. <PRINTER1,PRINTER2
  218. >
  219. >Enter the Spool ID of the Printjob
  220. >whose Priority you Wish to Change
  221. >
  222. <
  223. >
  224. >Please Select the Priority You Wish to Set 
  225. > (15 = Low   50 = normal   85 = High)
  226. >
  227. <15,25,50,75,85
  228. >
  229. !echo off
  230. ! if %2%.==. goto need 
  231. ! echo 3P SET %1 /SPOOL=%2 /PRI=%3
  232. ! echo  [3P LINK LPT3: \\sys\%1 /np > nul:
  233. ! echo  [3P SET LPT3: /SPOOL=%2 /PRI=%3
  234. ! echo  [3P UNLINK LPT3: /np > nul:
  235. ! goto done
  236. !:need
  237. ! echo .
  238. ! echo . You MUST enter a Spool ID!  You May See
  239. ! echo . the Printjob(s) in the Printer Queue via
  240. ! echo . "Show Printjobs in Printer Queue", above
  241. ! echo .
  242. !:done
  243. ! pause
  244. .................................................
  245. *  
  246. @netadmin.mdf
  247. .................................................
  248. *  
  249. @netadmin.mdf
  250. .................................................
  251. *  
  252. @netadmin.mdf
  253. .................................................
  254. *  
  255. @netadmin.mdf
  256. .................................................
  257. *Return to Main Menu
  258. @automenu.mdf
  259. .................................................
  260. .................................................
  261. %NETADMIN    DOS, Shutdown, and Unlink
  262. .................................................
  263. .................................................
  264. *Disconnect A User from Network
  265. ?3F UNLINK \\username
  266. >3F UNLINK \\username
  267. >
  268. >Please Select the User to Unlink from Server
  269. >
  270. <UserOne,UserTwo,UserThree,UserFour,UserFive,UserSix,UserSeven,UserEight,UserNine,UserTen,Admin
  271. >
  272. >3F UNLINK \\%1
  273. =echo  [3F UNLINK \\%1
  274. .................................................
  275. *Shutdown Network Services
  276. ?3M,3P & 3N SHUTDOWN
  277. ^shelby
  278. >WARNING!!! This will HALT ALL Network Operations!
  279. >
  280. >If you are SURE you wish to do this, press Return
  281. >otherwise, press ESC now
  282. <
  283. +shutdown.bat
  284. .................................................
  285. *  
  286. @netadmin.mdf
  287. .................................................
  288. *  
  289. @netadmin.mdf
  290. .................................................
  291. *  
  292. @netadmin.mdf
  293. .................................................
  294. *  
  295. @netadmin.mdf
  296. .................................................
  297. *  
  298. @netadmin.mdf
  299. .................................................
  300. *Return to Main Menu
  301. @automenu.MDF
  302. .................................................
  303. .................................................
  304. %NETADMIN Backup
  305. .................................................
  306. .................................................
  307. *Backup Server to Tape
  308. ?3B BACKUP
  309. ^shelby
  310. +echo  [3f login server1 /pass=david; link e: \\sys\apps
  311. +echo  [3b backup
  312. +start
  313. .................................................
  314. *Cancel Backup in Progress
  315. ?Requires ADMIN Capability
  316. ^shelby
  317. >3B CANCEL
  318. =echo  [3B CANCEL
  319. .................................................
  320. *Display Header of Backup Tape
  321. ?3B DIR
  322. >3B DIR
  323. =echo  [3B DIR
  324. .................................................
  325. *  
  326. @netadmin.mdf
  327. .................................................
  328. *  
  329. @netadmin.mdf
  330. .................................................
  331. *  
  332. @netadmin.mdf
  333. .................................................
  334. *  
  335. @netadmin.mdf
  336. .................................................
  337. *Return to Main Menu
  338. @automenu.MDF
  339. .................................................
  340. .................................................
  341. %NETADMIN   Network and DOS Commands
  342. .................................................
  343. .................................................
  344. *File Service commands
  345. ?3F
  346. ^shelby
  347. !echo  [3F HELP
  348. !echo  [3F
  349. .................................................
  350. *Print Service commands
  351. ?3P
  352. ^shelby
  353. !echo  [3P HELP
  354. !echo  [3P
  355. .................................................
  356. *Name Service commands
  357. ?3N
  358. ^shelby
  359. !echo  [3N HELP
  360. !echo  [3N
  361. .................................................
  362. *Backup Service commands
  363. ?3B
  364. ^shelby
  365. !echo  [3B HELP
  366. !echo  [3B
  367. .................................................
  368. *Mail Service commands
  369. ?3M
  370. ^shelby
  371. !echo  [3M HELP
  372. !echo  [3M
  373. .................................................
  374. *DOS commands
  375. !echo off
  376. !temp.bat
  377. .................................................
  378. *  
  379. @netadmin.mdf
  380. .................................................
  381. *Return to Main Menu
  382. @automenu.MDF
  383. .................................................
  384. .................................................
  385. # End of NetAdmin Menu
  386.